package com.heiyu.utils;

import com.heiyu.dao.BaseMapper;
import com.heiyu.entity.BaseEntity;

public class InfoCheckUtil {

    public static <T extends BaseEntity> boolean check(BaseMapper mapper,Long id,T t){
        t = (T) mapper.selectPrimary(id);
        if(t== null){
            return false;
        }
        return true;
    }
}
